using System.Collections.Generic;
using System.Windows.Input;
using System.Windows;

namespace SmartBoard.Commands
{
    public class CommandBinderBase
    {
        protected List<CommandBinding> _bindings;
        protected UIElement _element;

        public CommandBinderBase(UIElement element)
        {
            this._element = element;
            _bindings = new List<CommandBinding>();
        }

        public virtual void Bind()
        {
            _element.CommandBindings.AddRange(_bindings);
        }

        public virtual void Unbind()
        {
            _element.CommandBindings.Clear();
        }
    }
}